package com.viego.financialrecommendsystem.service.Impl;

import com.viego.financialrecommendsystem.entity.Focus;
import com.viego.financialrecommendsystem.entity.New;
import com.viego.financialrecommendsystem.mapper.FocusMapper;
import com.viego.financialrecommendsystem.mapper.NewMapper;
import com.viego.financialrecommendsystem.service.INewService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class NewServiceImpl implements INewService {

    @Resource
    NewMapper newMapper;

    @Resource
    FocusMapper focusMapper;

    @Override
    public List<New> list() {
        return newMapper.pre4();
    }

    @Override
    public List<Focus> focus() {
       return focusMapper.focus();
    }
}
